﻿<%@ Import Namespace="Wheels.Controllers" %>
<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Wheels.TransitService.StopObject>>" %>
<div id="TrainStops" title="Metro Stations" class="panel">
    <h2>Nearest Train Stations</h2>
     <ul >
            <% foreach (var stop in Model) { %>
                <li>
                
                
<% if (Session[TransitController.EXEC_TYPE_KEY].ToString() == TransitController.EXEC_TYPE_FASTEST)
   { %>
   
   <%= Html.ActionLink(stop.Name, "TrainStopAddRoute", "Transit", new { stopId = stop.StopID }, new { Class = "stopName" })%>

<% }
   else
   {
       if (Session[TransitController.EXEC_TYPE_KEY].ToString() == TransitController.EXEC_TYPE_NEXT)
       {%>
       
        <%= Html.ActionLink(stop.Name, "TrainPredictions", "Transit", new { stopId = stop.StopID }, new { Class = "stopName" })%>

<% }
           else
           {
               if (Session[TransitController.EXEC_TYPE_KEY].ToString() == TransitController.EXEC_TYPE_WHERE)
               {%>
               
               <%= Html.ActionLink(stop.Name, "TrainStop", "Transit", new { stopId = stop.StopID }, new { Class = "stopName" })%>
<% }
           }
       }%>                  
                               
                </li>
       
            <% } %>
     </ul>
</div>
